-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: Dependency Selector Syntax & npm query
#564
Conversation
Co-authored-by: Tierney Cyren <[email protected]>
Co-authored-by: Jordan Harband <[email protected]>
…nflicts w/ new :attr()
- `.` class selector | ||
- `:` pseudo class selector |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i still think these need to be named without the word "class".
#### Example of an `Object`: | ||
```css | ||
/* return dependencies that have a `scripts.test` containing `"tap"` */ | ||
*:attr(:scripts([test~=tap])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be good to add an example with a quoted key as well
#### Example of an `Array` Attribute Selection: | ||
```css | ||
/* return dependencies that have a keyword that begins with "react" */ | ||
*:attr(:keywords([item^="react"])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it'd be ideal to pick something that can't visually be confused with an object key - pretty much anything that, as an object key, would be forced to be quoted, would be a clear indicator that "keywords" is an array instead of an object
It would be great to have Tab Completion on quires! [Should that also be an RFC in itself?] |
I would expect this to be a follow-up RFC and not part of the core feature RFC. |
Implemented Arborist `querySelectorAll` method that enables easier retrieval of installed packages using a css-selector-like syntax. It also includes a new command `npm query` that exposes that same logic to users of the npm cli. Ref: npm/rfcs#564
Implemented Arborist `querySelectorAll` method that enables easier retrieval of installed packages using a css-selector-like syntax. It also includes a new command `npm query` that exposes that same logic to users of the npm cli. Ref: npm/rfcs#564
Implemented Arborist `querySelectorAll` method that enables easier retrieval of installed packages using a css-selector-like syntax. It also includes a new command `npm query` that exposes that same logic to users of the npm cli. Ref: npm/rfcs#564
Implemented Arborist `querySelectorAll` method that enables easier retrieval of installed packages using a css-selector-like syntax. It also includes a new command `npm query` that exposes that same logic to users of the npm cli. Ref: npm/rfcs#564
Implemented Arborist `querySelectorAll` method that enables easier retrieval of installed packages using a css-selector-like syntax. It also includes a new command `npm query` that exposes that same logic to users of the npm cli. Ref: npm/rfcs#564
Implemented Arborist `querySelectorAll` method that enables easier retrieval of installed packages using a css-selector-like syntax. It also includes a new command `npm query` that exposes that same logic to users of the npm cli. Ref: npm/rfcs#564
Implemented Arborist `querySelectorAll` method that enables easier retrieval of installed packages using a css-selector-like syntax. It also includes a new command `npm query` that exposes that same logic to users of the npm cli. Ref: npm/rfcs#564
Implemented Arborist `querySelectorAll` method that enables easier retrieval of installed packages using a css-selector-like syntax. It also includes a new command `npm query` that exposes that same logic to users of the npm cli. Ref: npm/rfcs#564
|
Rendered RFC* Updated
Overview
.querySelectorAll()
method toNode
s returned fromArborist
npm query